/*
* @Author: steven.wang
* @Date:   2019-01-04 16:40:21
* @Last Modified by:   steven.wang
* @Last Modified time: 2019-05-08 16:12:17
*/
var path = require('path');

const config = {
	debug: true,
	name: 'Crawler',
	description: 'Crawler Collection',
	keywords: 'nodejs express mongodb react',

	host: 'localhost',
	port: 5000,

	secret: 'node_crawler_secret',

	mongodb: 'mongodb://127.0.0.1/crawler',

	mysql: {
		host: 'localhost',
		port: 3306,
		user: 'root',
		password: 'password',
		database: 'crawler'
	},

	redis: {
		host: '127.0.0.1',
		port: 6379,
		db: 0,
		password: ''
	},

	session: {
		secret: 'node_crawler_secret',
		key: 'node_crawler_secret',
		maxAge: 2592000000
	},

	autho_cookie_name: 'node_crawler',

	rss: {
		title: 'Crawler Collection',
		link: '',
		language: 'zh-cn',
		description: '',
		max_rss_items: 50
	},
	log_dir: path.join(__dirname, 'logs'),

	mail_opts: {
		host: '',
		port: 25,
		auth: {
			user: '',
			pass: ''
		}
	},

	upload: {
		path: path.join(__dirname, 'public/upload'),
		url: 'public/upload'
	},

	page: {
		limit: 10
	}
};

module.exports = config;
